package com.us.simple;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 项目启动类
 *
 * @Author: wangziqian
 * @Date: 2024-05-15
 */
@SpringBootApplication
public class SimpleApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SimpleApplication.class);
        ConfigurableApplicationContext context = app.run(args);
        String port = context.getEnvironment().getProperty("server.port");
        String property = context.getEnvironment().getProperty("server.servlet.context-path");
        System.out.println("\n\n ============> 系统启动成功！后台地址：http://localhost:" + port + property);
        System.out.println("============> 系统启动成功！接口地址：http://localhost:" + port + property+"/doc.html");
    }

}
